package com.thd.springboot.framework.web.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * com.thd.springboot.framework.web.controller.TestController
 *
 * @author: wanglei62
 * @DATE: 2022/9/9 16:51
 **/
@Controller
@RequestMapping("/framework")
public class TestController {

    private Logger logger = LoggerFactory.getLogger(TestController.class);
    @RequestMapping("/test")
    @ResponseBody
    public ResponseEntity<String> test(){
        System.out.println("test");
        logger.info("test...");
        return ResponseEntity.ok("test");
    }
}
